Ext.define('StaffServer.view.retireStaff.RetireStaffForm', {
	extend : "Ext.form.Panel",
	alias : 'widget.retireStaffForm',

	// 基础属性
    labelAlign: 'right',
    frame: true,
    defaultType: 'textfield',
    bodyStyle : 'padding: 5px 5px 5px 15px',
    border: false,
    buttonAlign: 'center',
    defaults: {
        selectOnFocus: true,
        msgTarget: 'side'
    },
    
    items: [{
        fieldLabel: '养老编号',
        name: 'retireId',
        allowBlank: false
    }, {
        fieldLabel: '工作单位',
        name: 'companyName'
    }, {
        fieldLabel: '姓名',
        name: 'staffName',
        allowBlank: false
    },Ext.create('StaffServer.comboBox.SexCombo', {
    	fieldLabel: '性别',
        name: 'sex',
    }), {
        fieldLabel: '身份证号',
        name: 'idCardNo'
    },Ext.create('StaffServer.comboBox.RetireTypeCombo', {
    	fieldLabel: '退休性质',
        name: 'retireType',
    }), {
        fieldLabel: '退休时间',
        xtype: 'datefield',
        format: 'Y-m-d',
        name: 'retireDateFormat',
        allowBlank: false
    },Ext.create('StaffServer.comboBox.RetireJobCombo', {
    	fieldLabel: '退休时职务',
        name: 'retireType',
    }),Ext.create('StaffServer.comboBox.WorkTypeCombo', {
    	fieldLabel: '参加工改类别',
        name: 'workType',
    }), {
        fieldLabel: '国家工资',
        name: 'countryPayFormat'
    }, {
        fieldLabel: '国家历年退休增费',
        name: 'countryPayAddFormat'
    }, {
        fieldLabel: '退休人员补贴',
        name: 'allowanceFormat'
    }],
    
	initComponent : function() {
	    this.dockedItems = [ {
	    	xtype: 'statusbar',
	    	dock : 'bottom'
	    }];
		this.callParent(arguments);
	}

});